import { createApp } from 'vue'
import router  from "./router/index.ts";
import { createPinia } from 'pinia' // 导入 createPinia
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import app from './App.vue'

const vueApp = createApp(app);
// 创建 Pinia 实例
const pinia = createPinia()
vueApp.use(router); //让vue对象启用路由
vueApp.use(pinia)
vueApp.mount('#app')
//注册ElementPlus 的小图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    vueApp.component(key, component)
}


//pinia,vuex